<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>流程控制</title>
		<script>
			/*if(0>1) console.log(true);
			else{
				console.log(2);
				}*/
			var param= {
				name:  "张三",
				age:  18
			}
			/*if(param.age<20){
				console.log(21);
				}else{
					console.log("查无此人");
				}*/
				/*if(param.age>20 && param.age<22){
					console.log(21);
					}else if(param.age>22&&param.age<30)
					{
						console.log(param.age);
						}else{
							console.log("查无此人");
							}*/
				switch(param.age){
					case 10:
					console.log("10岁");
					break;
					case 20:
					console.log("20岁");
					break;
					default:
					console.log("查无此人");
					}
		</script>
	</head>
	<body>
	</body>
</html>
